package com.zxt.lock.strategy;

import com.zxt.lock.properties.RedissonProperties;
import org.redisson.config.Config;

/**
 * redisson配置上下文
 *
 * @author zxt
 */
public class RedissonConfigContext {
    private final RedissonConfigStrategy redissonConfigStrategy;

    public Config createRedissonConfig(RedissonProperties redissonProperties) {
        return this.redissonConfigStrategy.createRedissonConfig(redissonProperties);
    }

    public RedissonConfigContext(final RedissonConfigStrategy redissonConfigStrategy) {
        this.redissonConfigStrategy = redissonConfigStrategy;
    }
}